/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/views/layout/Layout'

const powerRouter = {
    path: '/power',
    component: Layout,
    redirect: 'noredirect',
    name: 'Power',
    meta: {
        title: '权限管理',
        icon: 'table',
        guid: 'b6f88fef-27c8-11ef-8d3a-00163e1742fd',
        roles: ['admin']
    },
    children: [{
        path: 'reset_password',
        component: () =>
            import ('@/views/power/resetPassword'),
        name: 'resetPassword',
        hidden: true,
        meta: {
            title: '修改密码',
            icon: 'table',
            guid: '1f969663-2d45-11ef-a12f-00163e0acd8d',
            roles: ['admin', 'editor', 'visitor']
        }
    }, {
        path: 'power_usermanage',
        component: () =>
            import ('@/views/power/userManage'),
        name: 'userManage',
        meta: {
            title: '登录用户管理',
            icon: 'table',
            guid: 'be90b027-27c8-11ef-8d3a-00163e1742fd',
            roles: ['admin']
        }
    }, {
        path: 'power_rolesmanage',
        component: () =>
            import ('@/views/power/rolesManage'),
        name: 'rolesManage',
        meta: {
            title: '角色管理',
            icon: 'table',
            guid: 'c8b0f7b3-27c8-11ef-8d3a-00163e1742fd',
            roles: ['admin']
        }
    }, {
        path: 'power_modulemanage',
        component: () =>
            import ('@/views/power/moduleManage'),
        name: 'moduleManage',
        meta: {
            title: '模块管理',
            icon: 'table',
            guid: 'ce9a22ec-27c8-11ef-8d3a-00163e1742fd',
            roles: ['admin']
        }
    }]
}

export default powerRouter